package com.mxpio.erp.common.equipment.entity;

import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.jpa.policy.impl.UUIDPolicy;
import com.mxpioframework.security.annotation.Dict;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 保养类别对象 MB_ERP_EQUIPMENT_UPKEEP_CATEGORY
 *
 * @author Cheng
 * @date 2023-07-18
 */
@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_EQUIPMENT_UPKEEP_CATEGORY")
@Schema(description="保养类别")
public class EquipmentUpkeepCategory extends BaseEntity {

private static final long serialVersionUID=1L;

    @Id
    @Generator(policy = UUIDPolicy.class)
    @Column(name = "ID_")
    @Schema(description = "主键")
    private String id;

    @Column(name = "NAME_")
    @Schema(description = "类别名称")
    private String name;

    @Column(name = "CODE_")
    @Schema(description = "类别编码")
    private String code;

    @Column(name = "IS_ENABLE_")
    @Schema(description = "是否有效")
    @Dict(dicCode = "ERP_COMMON_YESNO")
    private Integer isEnable;

}
